package cn.itsource.ymcc.client;

import cn.itsource.ymcc.client.fallback.OrderFeignClientFactory;
import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-order",fallbackFactory = OrderFeignClientFactory.class)
@RequestMapping("/courseOrder")
public interface OrderFeignClient {

    @RequestMapping(value="/one/{orderNo}",method= RequestMethod.GET)
    JSONResult selectByOrderNo(@PathVariable("orderNo")String orderNo);

}
